const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

export default [
  {
    path: "/",
    name: "welcome",
    component: Layout,
    redirect: "/equipment",
    meta: {
      icon: "ep:histogram",
      title: "设备管理与控制",
      rank: 0
    },
    children: [
      {
        path: "/equipment",
        name: "equipment",
        component: () => import("@/views/manage/equipment/index.vue"),
        meta: {
          title: "设备管理与控制",
          icon: "ep:tools",
          showLink: VITE_HIDE_HOME === "true" ? false : true
        }
      }
    ]
  },
  {
    path: "/dataLoad",
    name: "dataLoad",
    component: () => import("@/views/manage/dataLoad/index.vue"),
    meta: {
      title: "数据加载与管理",
      icon: "ep:histogram",
      showLink: VITE_HIDE_HOME === "true" ? false : true
    }
  }
] satisfies Array<RouteConfigsTable>;
